﻿@using System.Linq
@using rentit03_client.Models
<div class="well row">
    <h3>
        Shopping Cart</h3>
    @if (ViewBag.Cart != null && ViewBag.Cart.Count > 0)
    {
        <ul class="unstyled" style="margin-top: 10px; margin-bottom: 20px;">
            @foreach (MovieObj movie in ViewBag.Cart)
            {
                <li><i class="icon-film"></i>&nbsp;<a href="@Url.Action("Index", "Movie", new { @id = movie.Id })">@movie.Title</a></li>
            }
        </ul>
        <a class="btn pull-right" href="@Url.Action("Index", "Cart")"><i class="icon-shopping-cart">
        </i>Checkout</a>
    }
    else
    {
        <em>No items in the cart</em>
    }
</div>